<template>
  <div @click.stop="sendClick" class="fileFolderViewer">
    <div class="inner">
      <i v-if="fileObj.isDirectory" class="el-icon-folder" />
      <i v-else class="el-icon-document" />
      {{ fileObj.name }}
    </div>
  </div>
</template>
<script>
export default {
  name: "fileFolderViewer",
  props: {
    fileObj: {
      required: true,
      type: Object,
    },
  },
  methods: {
    sendClick() {
      this.$emit("click-o", this.fileObj);
    },
  },
};
</script>
